
function Person(name, age) {
	this.name = name 
	this.age  = age
}

Person.prototype.show = function() {
	return `姓名: ${this.name}, 年龄: ${this.age}`;
}

function Student(name, age, school, show) {
	Person.call(this,name, age)
	this.school = school
	this.show =function() {
		// console.log(super.name)
		return ` [stu]姓名:  ${this.name}, 年龄: ${this.age}`;
	}
}

// Object.setPrototypeOf(Student.prototype, Person.prototype);
Student.prototype.show = function() {
	return `学校: ${this.school}`;
}
Student.prototype.name = 'Student prototype name' 


var stu = new  Student('阿勇', 23, '加里敦')
var aa =  function() {
	// console.log(super.name)
	return ` [stu]姓名:  ${this.name}, 年龄: ${this.age}`;
}
console.log(stu)
console.log(stu.show())



